#include "TOP.html"
#if $edit
<form method="POST" enctype="multipart/form-data">
<div id='filesNew'>
  <a href='javascript:loadXMLDoc("forms.filesNew", "filesNew");'>[ Upload new file ]</a><br/>
</div>
</form>
#end if
<h2>List of existing files</h2>
<table id='filebox' width='100%'>
<thead><tr>
	<th width='60%'>Filename</th>
        <th align='right'>Size</th>
        <th>Modify Time</th>
</tr></thead>

<tfoot><tr>
	<td colspan='3'>
#echo len($files)
 files total</td>
</tr></tfoot>
<tbody>
#for file in $files
#if $file.id % 2 == 0
<tr 
#else
<tr class='odd'
#end if
     onClick='window.open("$c_abspath/static/download/$file.name")'>
	<td><img src='$c_abspath/static/imgs/h1_hover.png'/>
        	<a href='$c_abspath/static/download/$file.name'>$file.name</a></td>
        <td align='right'>$file.size</td>
        <td>$file.mtime</td>
</tr>
#end for
</tbody>
</table>
#include "BOTTOM.html"
